import socket

s = socket.socket(socket.AF_INET)
s.bind(('127.0.0.1', 8081))
s.listen(3)

while True:
    client, addr = s.accept()
    data = client.recv(1024)
    client.send(b'recv: ')
    client.send(data)
    client.close()
